/*
 * Created on 2005-10-10
 */
package com.smartdio.company.editor;

import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;

import com.smartdio.company.model.Person;

public class PersonCardPanel extends Composite {

	private Group group = null;
	private Label label = null;
	public Text text = null;

	public PersonCardPanel(Composite parent, int style) {
		super(parent, style);
		initialize();
	}

	private void initialize() {
		createGroup();
		this.setLayout(new GridLayout());
		setSize(new Point(300, 200));
	}

	/**
	 * This method initializes group
	 * 
	 */
	private void createGroup() {
		GridData gridData1 = new org.eclipse.swt.layout.GridData();
		gridData1.grabExcessHorizontalSpace = true;
		gridData1.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
		gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
		GridLayout gridLayout = new GridLayout();
		gridLayout.numColumns = 2;
		GridData gridData = new org.eclipse.swt.layout.GridData();
		gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
		gridData.grabExcessHorizontalSpace = true;
		gridData.grabExcessVerticalSpace = true;
		gridData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL;
		group = new Group(this, SWT.NONE);
		group.setLayoutData(gridData);
		group.setLayout(gridLayout);
		group.setText("%card");
		label = new Label(group, SWT.NONE);
		label.setText("%extendCards");
		text = new Text(group, SWT.BORDER);
		text.setLayoutData(gridData1);
	}

	public void setValue(Person person) {

	}

	public void setPersonValue(Person person) {

	}
}
